﻿using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Text;

namespace DeZhen.Core.Framework.Config
{
    public static class AppConfig
    {
        private static IConfigurationRoot Configuration { get; set; }
        public static IConfigurationSection GetSection(string name)
        {
            return Configuration?.GetSection(name);
        }
        public static IConfigurationRoot Initialize(this IConfigurationRoot configuration)
        {
            Configuration = configuration;
            return configuration;
        }
    }
}
